package com.wocao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wocao.entity.SysMenu;
import com.wocao.mapper.SysMenuMapper;
import com.wocao.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 菜单权限表 服务实现类
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {
    @Autowired
    private SysMenuMapper sysMenuMapper;

    @Override
    public List<SysMenu> selectAllMenuAndChildMenu() {
        return sysMenuMapper.selectAllMenuAndChildMenu();
    }
    @Override
    public List<SysMenu> getMenuWithChildren() {
        return sysMenuMapper.selectMenuWithChildren();
    }

    @Override
    public List<SysMenu> getMenuTree(String menuName, String status) {
        return sysMenuMapper.selectMenuTree(menuName, status);
    }
}
